import request from '/@/utils/request';

export async function getMenuAdmin(params?: object) {
	return await request({
		url: '/menu/get/0/role',
		method: 'get',
		params,
	});
}

//新增菜单
 export async function  postMenu(params?: object) {
	return await request({
		url: '/menu/post',
		method: 'post',
		data:params,
	});
}
//编辑菜单
export async function  putMenu(params?: object) {
	return await request({
		url: '/menu/put',
		method: 'put',
		data:params,
	});
}
//删除菜单
export async function deleteMenu(params?: object) {
	return await request({
		url: '/menu/delete',
		method: 'delete',
		data:params,
	});
}